package com.itheima.service;

import com.itheima.domain.Classes;
import com.itheima.mapper.ClassesMapper;
import com.itheima.utils.MyBatisUtils;
import org.junit.Test;

import java.util.List;

public class TestDemo {

    @Test
    public void findAll(){
        ClassesMapper mapper = MyBatisUtils.getSqlSession().getMapper(ClassesMapper.class);
        List<Classes> all = mapper.findAll();
        for (Classes classes : all) {

            System.out.println(classes.getCname());
        }

    }



}
